import request from '@/utils/request'
// 查询奖励创建记录
export function getbonusTaskList(query) {
  return request({
    url: '/bonusTask',
    method: 'get',
    params: query
  })
}
// 创建奖励
export function postBonusTask(data) {
  return request({
    url: '/bonusTask',
    method: 'post',
    data: data
  })
}
// 查看任务下的领取记录
export function getQueryReceiveHistory(query) {
  return request({
    url: '/bonusTask/queryReceiveHistory',
    method: 'get',
    params: query
  })
}
// 删除任务
export function deleteBonusTask(id) {
  return request({
    url: `/bonusTask/${id}/` ,
    method: 'delete'
  })
}
